//! Tests.debug.js
//

(function() {

Type.registerNamespace('Tests.Pages');

////////////////////////////////////////////////////////////////////////////////
// Tests.Pages.BlankTest

Tests.Pages.BlankTest = function Tests_Pages_BlankTest() {
    /// <field name="suiteName" type="String" static="true">
    /// </field>
    /// <field name="instance" type="Tests.Pages.BlankTest" static="true">
    /// </field>
    Tests.Pages.BlankTest.initializeBase(this, [ 'BlankTest' ]);
    var test1 = new Test('BlankTest 1').addToSuite(this).actionDx(function(aw) {
    });
    new Test(TestSuite.allTestsName).addToSuite(this).goTo(ThemeYoshi.defaultPageName).call(test1);
}


////////////////////////////////////////////////////////////////////////////////
// Tests.Pages.CreateSpaceTests

Tests.Pages.CreateSpaceTests = function Tests_Pages_CreateSpaceTests() {
    /// <field name="suiteName" type="String" static="true">
    /// </field>
    /// <field name="instance" type="Tests.Pages.CreateSpaceTests" static="true">
    /// </field>
    Tests.Pages.CreateSpaceTests.initializeBase(this, [ 'CreateSpaceTests' ]);
    var createSpace = new Test('Create New Space').addToSuite(this).actionDx(function(aw) {
        $('#SpaceName').val('test');
        $('#Email').val('nsbawden@gmail.com');
        $('#Password').val('aaaaaaaa');
        $('#PasswordAgain').val('aaaaaaaa');
        $('#MathResult').val('-9999');
    }).waitFor('#MathResult', '-9999').press('#CreateButton');
    new Test(TestSuite.allTestsName).addToSuite(this).goTo('Admin').call(createSpace);
}


Type.registerNamespace('MetaTests.Pages');

////////////////////////////////////////////////////////////////////////////////
// MetaTests.Pages.MasterPageTests

MetaTests.Pages.MasterPageTests = function MetaTests_Pages_MasterPageTests() {
    /// <field name="suiteName" type="String" static="true">
    /// </field>
    /// <field name="instance" type="MetaTests.Pages.MasterPageTests" static="true">
    /// </field>
    MetaTests.Pages.MasterPageTests.initializeBase(this, [ MetaTests.Pages.MasterPageTests.suiteName ]);
    var savedUser = '@SavedUser';
    var savedPage = '@SavedPage';
    new Test(TestSuite.allTestsName).addToSuite(this).set(savedPage, function() {
        return ThemeYoshi.currentPageName;
    }).runPageSuite(ThemeYoshi.defaultPageName).goTo(savedPage);
}


Tests.Pages.BlankTest.registerClass('Tests.Pages.BlankTest', TestSuite);
Tests.Pages.CreateSpaceTests.registerClass('Tests.Pages.CreateSpaceTests', TestSuite);
MetaTests.Pages.MasterPageTests.registerClass('MetaTests.Pages.MasterPageTests', TestSuite);
Tests.Pages.BlankTest.suiteName = 'BlankTest';
Tests.Pages.BlankTest.instance = new Tests.Pages.BlankTest();
Tests.Pages.CreateSpaceTests.suiteName = 'CreateSpaceTests';
Tests.Pages.CreateSpaceTests.instance = new Tests.Pages.CreateSpaceTests();
MetaTests.Pages.MasterPageTests.suiteName = 'All Tests';
MetaTests.Pages.MasterPageTests.instance = new MetaTests.Pages.MasterPageTests();
})();

//! This script was generated using Script# v0.7.4.0
